import request from '@/utils/request';

/**
 * 账户登录
 * @param {number} params.code 验证码
 * @param {string} params.username 用户名
 * @param {string} params.password 用户密码
 **/
export async function postAccountLogin(params) {
  return request.post('/plusadmin/login', params);
}

export async function getCurrentUser() {
  return request.get('/currentUser');
}
export async function getCurrentUserNav() {
  return request.get('/currentUserNav');
}
export async function postLogout() {
  return request.post('/logout');
}
export async function getSmsCaptcha(params) {
  return request.get('/message/captcha/sms', {
    params,
  });
}
